package javapuzzles;

public class SelfInterruption {
	public static void main(String[] args) {
		Thread.currentThread().interrupt();
		/* 
		 * 方法 Thread.interrupted() 总是会清除当前线程的中断状态 
		 * Thread.currentThread().isInterrupted() 则不会清除中断状态 
		 */
		if(Thread.interrupted()) {
			System.out.println("Interrupted " + Thread.interrupted());
		} else {
			System.out.print("Not Interrupted" + Thread.interrupted());
		}
	}
}
